<?PHP //-*-coding: utf-8;-*-

require (VENDORS_PATH .'swift'.DS. 'Swift.php');
require (VENDORS_PATH .'swift'.DS.'Swift'.DS.'Connection'.DS. 'SMTP.php');

// 创建smtp连接
$smtp = new Swift_Connection_SMTP('mail.joyopark.com', 25);
//$smtp = new Swift_Connection_SMTP('smtp.qq.com', 25);
// 设置邮箱账号
$smtp->setUsername('contactus@joyopark.com');
//$smtp->setUsername('583113678@qq.com');
// 设置邮箱登陆密码
$smtp->setPassword('qy&123456');
//$smtp->setPassword('guowenbin00@@');
$swift = new Swift($smtp);